package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.ScenicComment;
import cn.wolfcode.luowowo.comment.query.ScenicCommentQuery;
import cn.wolfcode.luowowo.member.domain.UserInfo;
import org.springframework.data.domain.Page;
import java.util.List;

public interface IScenicCommentService {
    /**
     * 添加点评或者评论
     * @param scenicComment
     * @param userInfo
     */
    void commentAdd(ScenicComment scenicComment, UserInfo userInfo);

    /**
     * 找出五个最高的
     * @param scenicId
     * @return
     */
    List<ScenicComment> queryTop(Long scenicId);

    /**
     * 查询所有评论
     * @param qo
     * @return
     */
    Page queryForComments(ScenicCommentQuery qo);

    /**
     * 点赞
     * @param id1
     * @param id2
     */
    void commentThumbUp(String id1, Long id2);

    /**
     * 获取用户的景点点评
     * @param uid
     * @return
     */
    List<ScenicComment> getByUserId(Long uid);
}
